package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

    
/**
 * 房间用户关联表 room_user
 *
 * @author houyijun
 * @date 2019-01-24
 */
public class RoomUser extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 房间ID */
	private Integer roomId;
	/** 用户ID */
	private Integer userId;
	/** 用户等级（0群主，10普通成员） */
	private Integer userRank;
	/** 加入时间 */
	private Date createTime;
	/** 删除标志 0未删除 2已删除 */
	private Integer delFlag;

	private String name;
	private String nickName;
	private String phone;
	private Integer uId;
	private Integer userDelFlag;
	private Integer userType;
	private Integer robotType;
	private BigDecimal money;
	private BigDecimal freezeMoney;
	private User user;
	private UserWallet userWallet;
	private RoomUser roomUser;
	private Room room;

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public Integer getUserDelFlag() {
		return userDelFlag;
	}

	public void setUserDelFlag(Integer userDelFlag) {
		this.userDelFlag = userDelFlag;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getRobotType() {
		return robotType;
	}

	public void setRobotType(Integer robotType) {
		this.robotType = robotType;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getFreezeMoney() {
		return freezeMoney;
	}

	public void setFreezeMoney(BigDecimal freezeMoney) {
		this.freezeMoney = freezeMoney;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public UserWallet getUserWallet() {
		return userWallet;
	}

	public void setUserWallet(UserWallet userWallet) {
		this.userWallet = userWallet;
	}

	public RoomUser getRoomUser() {
		return roomUser;
	}

	public void setRoomUser(RoomUser roomUser) {
		this.roomUser = roomUser;
	}

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setRoomId(Integer roomId){
		this.roomId = roomId;
	}

	public Integer getRoomId(){
		return roomId;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setUserRank(Integer userRank){
		this.userRank = userRank;
	}

	public Integer getUserRank(){
		return userRank;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("userId", getUserId())
            .append("userRank", getUserRank())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
